<?php
class Articles_Controller_Articles {
	
	/**
	 * @var $view 
	 */
	public $view;
	
	public $articlesModel;
	
	/**
	 * constructor
	 */
	public function __construct(){
		
		$this->view = new Core_Model_View('articles', 'articles');
		$this->articlesModel = new Articles_Model_Articles();
		
	}
	
	/**
	 * return render template
	 * 
	 * @param array $getVars
	 */
	public function entryPoint(array $getVars){
		
		$article = $this->articlesModel->getArticles($getVars);
		$this->view->assign('title' , $article['title']);
        $this->view->assign('description' , $article['description']);
        $this->view->assign('content' , $article['content']);
        $this->view->assign('meta_title' , $article['meta_title']);
        $this->view->assign('meta_description' , $article['meta_description']);
        $this->view->assign('meta_keywors', $article['meta_keywords']);
	}
	
}